package com.dlq.cloud.service;

import com.dlq.cloud.dao.UserDao;
import com.dlq.cloud.pojo.User;
import com.dlq.cloud.service.impl.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    public User getUserByName(String userName){
        User user = userDao.getUserByName(userName);
        return user;
    }
}
